﻿<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>枚举器对象 - 定义 &amp; 使用 | AutoHotkey v2</title>
<meta name="description" content="An enumerator is a type of function object which is called repeatedly to enumerate a sequence of values." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script>
</head>
<body>

<h1>枚举器对象</h1>

<p>枚举器是<a href="Functor.htm">函数对象</a>的一种类型, 可以反复调用以枚举值序列.</p>

<p>相关: <a href="../commands/For.htm">For-loop</a>, <a href="Object.htm#OwnProps">OwnProps</a>, <a href="Object.htm#OwnMethods">OwnMethods</a>, <a href="Array.htm#__Enum">__Enum (Array)</a>, <a href="Map.htm#__Enum">__Enum (Map)</a></p>

<div class="methodShort"><h2 id="Call">Call</h2>
<p>检索枚举中的下一个或多个项目.</p>
<pre class="Syntax">Enum.<span class="func">Call</span>(ByRef OutputVar1 <span class="optional">, ByRef OutputVar2</span>)</pre>
<dl>
  <dt>OutputVar1, OutputVar2</dt>
  <dd>
    <p>类型: <a href="../Concepts.htm#variables">变量</a></p>
    <p>接收实现中的具体的值.</p>
  </dd>
  <dt>Return Value</dt>
  <dd><p>成功时返回非零整数, 没有项目剩余时则返回零.</p></dd>
</dl>

</div>

</body>
</html>